/**
*@Author: QWP
*@Description: 应急的共享数据
*@Date 2024-08-05 14:58
*/
import { defineStore } from 'pinia'

interface EmergencyState {
  level: string
}

export const useEmergencyStore = defineStore('emergencyStore', {
  state: (): EmergencyState => {
    return {
      level: '1', // 应急等级 
    }
  },
  getters: {
    getLevel: (state): string => state.level,
  },
  actions: {
    setLevel(data: string) {
      this.level = data
    },
  },
})